﻿using AnesSystem.Models;
using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnesSystem.Services
{
    public class WorkScoreService : BaseService<WorkScoreService, WorkScoreModel>
    {
        //查询所有账号，去掉重复
        public List<WorkScoreModel> seachWorkScoreAll(string loginName, string pwd)
        {
            return null;
        }

        //用于人名查询
        public List<WorkScoreModel> findWorkScoreListByDateAndDoceName(DateTime startDate, DateTime endDate)
        {
            var query = Builders<BsonDocument>.Filter.And(
                    Builders<BsonDocument>.Filter.Gte("DateDD", startDate),
                    Builders<BsonDocument>.Filter.Lt("DateDD", endDate));
            return FindAll(query).ToList();
        }

    }
}
